package com.exahq.service.impl;

import com.exahq.entity.Partner;
import com.exahq.entity.SelectData;
import com.exahq.mapper.PartnerMapper;
import com.exahq.service.PartnerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lhq
 * @since 2021-02-06
 */
@Service
public class PartnerServiceImpl extends ServiceImpl<PartnerMapper, Partner> implements PartnerService {
    @Autowired
    private PartnerMapper partnerMapper;

    @Override
    public List<Partner> getByQuery(SelectData selectData) {
        return partnerMapper.getByQuery(selectData);
    }

    @Override
    public int getCount(SelectData selectData) {
        return partnerMapper.getCount(selectData);
    }

    @Override
    public int insert(Partner partner) {
        return partnerMapper.insert(partner);
    }

    @Override
    public Integer delete(Integer id) {
        return partnerMapper.deleteById(id);
    }


}
